home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global ghardDiskPath, gCDRDrive, prefName
- set ghardDiskPath to the pathName
- set prefFile to FileIO(mnew, "read", prefName)
- if objectp(prefFile) then
- put prefFile(mReadFile) into field "preferences"
- prefFile(mdispose)
- set whichChar to offset("Drive=", field "preferences")
- if whichChar <> 0 then
- put char whichChar + 6 of field "preferences" into field "cd drive"
- testEntry()
- else
- go("drive")
- end if
- else
- alert("Error reading file " & prefName)
- quit()
- end if
- end
-